package com.tledu.springboot04.mapper;

import com.tledu.springboot04.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
public interface IUserMapper {
    List<User> list(User user);

    void delete(int id);

    User getUserByUsername(@Param("username") String username);
}
